package com.py.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient(value = "py-wms-code")
public interface PyCodeApi {

    @RequestMapping("/generateCode")
    public Map<String, Object> generateCode(@RequestParam(value = "code", required = true) Integer code);

    @RequestMapping("/saveCode")
    public  void saveCode(@RequestParam(value = "code", required = true) Integer code, @RequestParam(value = "number", required = true) Integer number);

}
